package main
import (
	"fmt"
	"math"
)
func main() {
	var a float64 = 3.0
	var b float64 = 100.0
	var c float64 = 6.0
	var x1 float64 = 0
	var x2 float64 = 0
	if b*b - 4*a*c > 0 {
		x1 = (-b + math.Sqrt(b*b-4*a*c)) / 2*a
		x2 = (-b - math.Sqrt(b*b-4*a*c)) / 2*a
		fmt.Printf("x1=%v x2=%v ",x1,x2)
	} else if b*b - 4*a*c == 0 {
		x1 = (-b + math.Sqrt(b*b-4*a*c)) / 2*a
		fmt.Printf("x1=%v",x1)
	} else {
		fmt.Println("此题无解")
	}
}